<?php

use common\server\BasicDataServer;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\SearchHouseModel */
/* @var $form yii\widgets\ActiveForm */
$fieldOptions1 = [
    'options' => ['class' => 'form-group search-group'],
];

?>

<div class="house-model-search">

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
    ]); ?>


    <?php // echo $form->field($model, 'house_unit_price') ?>

    <?php // echo $form->field($model, 'return_money') ?>

    <?php // echo $form->field($model, 'developer') ?>

    <?php // echo $form->field($model, 'checkout') ?>

    <?php // echo $form->field($model, 'property') ?>

    <?php // echo $form->field($model, 'decoration_id') ?>

    <?php  echo $form->field($model, 'region',$fieldOptions1)->label(false)->dropDownList(BasicDataServer::instance()->getRegionToOptions(true), ['encodeSpaces' => 1]) ?>

    <?php // echo $form->field($model, 'total_price') ?>

    <?php // echo $form->field($model, 'address') ?>

    <?php // echo $form->field($model, 'region_id') ?>

    <?php // echo $form->field($model, 'room1') ?>

    <?php // echo $form->field($model, 'room2') ?>

    <?php // echo $form->field($model, 'head') ?>

    <?php // echo $form->field($model, 'phone') ?>

    <div class="form-group">
        <?= Html::submitButton('搜索', ['class' => 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>
    <div class="clearfix"></div>
</div>
